package cn.rkylin.oms.warehouse.stock.dao;

import cn.rkylin.oms.warehouse.stock.domain.Stock;
import cn.rkylin.oms.warehouse.stock.domain.StockBalance;

import java.util.List;

/**
 * 库存DAO接口
 * @author liming
 * @date 2017/10/30
 */
public interface IStockDAO {
    /**
     * 获取库存列表
     * @param stock
     * @return
     * @throws Exception
     */
    public List<Stock> findByWhere(Stock stock) throws Exception;

    /**
     * 插入库存结余
     * @param stockBalance
     * @return
     * @throws Exception
     */
    public int insertStockBalance(StockBalance stockBalance) throws Exception;
    
    /**
     * findStockBalanceByWhere:根据仓库ID查询库存结余. <br/>
     *
     * @author zhanghao
     * @param storId
     * @return
     * @throws Exception
     */
    public List<StockBalance> findStockBalanceByWhere(String storId) throws Exception;

}
